from google.appengine.ext import db

class Entry(db.Model):
	uid = db.UserProperty()								#uid
	date = db.DateTimeProperty()						#date
	insdate = db.DateTimeProperty()
	loc = db.StringProperty(default = '')				#location
	item = db.StringProperty(default = '')
	val = db.IntegerProperty(default = 0)				#value
	cat = db.StringProperty(default = '')				#category
	comment = db.StringProperty(default = '')			#comment

class Category(db.Model):
	uid = db.UserProperty()
	name = db.StringProperty(default = '')

class Geodata(db.Model):
	addr = db.StringProperty()
	formatted_addr = db.StringProperty()
	lat = db.StringProperty()
	lng = db.StringProperty()
